package com.zh.test.IO;

public class IOTestChildren extends IOTest {
    public IOTestChildren(){
        System.out.println("这是子类的构造方法");
    }
    public String name = "子类属性";
    public  void show (){
       /* show();
        super.hashCode();*/
       // IOTest ioTest = super
        super.show();
        //show();

        System.out.println("这是子类方法"+name);
    }
/**
 * 子类的构造方法中,无参构造方法默认会加入super()父类的无参构造方法
 * */
    public static void main(String[] args) {
       new IOTestChildren().show();
       new IOTestChildren2().show();
    }
    @Override
    public int hashCode(){
        return 2;
    }


}
